
@mixin _assert-ascending($map, $map-name) {
  $prev-key: null;
  $prev-num: null;
  @each $key, $num in $map {
    @if $prev-num == null {
      // Do nothing
    } @else if not comparable($prev-num, $num) {
      @warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
    } @else if $prev-num >= $num {
      @warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
    }
    $prev-key: $key;
    $prev-num: $num;
  }
}

$browser-default-font-size: 16px !default;
$page-width-integer: 640 !default;
$page-width-px-size: #{$page-width-integer}px !default;
$page-height-integer: 1138 !default;
$page-height-px-size: #{$page-height-integer}px !default;
$material-grey: unquote("#757575");
$color-primary:unquote("rgb(139,195,74)");
$color-accent: unquote("rgb(255,110,64)");
$color-border: unquote("#d7d7d7");
$navbar-height: 78px;
$navbar-logo-width: 78px;
$navbar-logo-height: 52px;
$navbar-logo-margin-top: 13px;
$navbar-slogan-width: 187px;
$navbar-slogan-height: 32px;

// 控制台
$navbar-control-height: 52px;

$grid-breakpoints: (
  xs: 0,
  sm: 544px,
  md: 768px,
  lg: 992px,
  xl: 1200px
) !default;
@include _assert-ascending($grid-breakpoints, "$grid-breakpoints");
